package auto.app.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ExcelTarget("TestReportVo")
public class TestReportVo {
    /**
     * 用例id
     */
    @Excel(name = "用例id",orderNum = "0",width = 20)
    private Integer caseId;

    /**
     * 用例名称
     */
    @Excel(name = "用例名称",orderNum = "1",width = 20)
    private String caseName;
    /**
     * 接口名称
     */
    @Excel(name = "接口名称",orderNum = "2",width = 20)
    private String interfaceName;

    /**
     * 参数类型
     */
    @Excel(name = "参数类型",orderNum = "3",width = 20)
    private String parameterType;

    /**
     * 请求方式
     */
    @Excel(name = "请求方式",orderNum = "4",width = 20)
    private String requsetMethod;


    /**
     * 请求路径
     */
    @Excel(name = "请求路径",orderNum = "5",width = 20)
    private String requestPath;


    /**
     * ip地址
     */
    @Excel(name = "ip地址",orderNum = "6",width = 20)
    private String ip;

    /**
     * 端口
     */
    @Excel(name = "端口",orderNum = "7",width = 20)
    private Integer port;

    /**
     *排序
     */
    @Excel(name = "排序",orderNum = "8",width = 20)
    private Integer sort;

    /**
     * 合集ID
     */
    @Excel(name = "合集ID",orderNum = "9",width = 20)
    private Integer collectionId;

    /**
     * 状态（S  成功  F 失败）
     */
    @Excel(name = "执行情况",orderNum = "10",width = 20)
    private String status;
    /**
     * 执行结果
     */
    @Excel(name = "执行结果",orderNum = "11",width = 20)
    private String result;
    /**
     * 错误信息
     */
    @Excel(name = "执行信息",orderNum = "12",width = 30)
    private String message;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间",orderNum = "13",width =30)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 备注
     */
    @Excel(name = "备注",orderNum = "14",width = 20)
    private String remark;
}
